package com.npjscg.medicalpro.controller.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.core.SpringVersion;

import java.time.LocalDateTime;
import java.time.LocalTime;


public class ReportDTO {
    private int id;
    private String temname;
    private String username;

    private Integer tid;

    private String msg;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime checkdate;
    private int status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTemname() {
        return temname;
    }

    public void setTemname(String temname) {
        this.temname = temname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public LocalDateTime getCheckdate() {
        return checkdate;
    }

    public void setCheckdate(LocalDateTime checkdate) {
        this.checkdate = checkdate;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ReportDTO{" +
                "id=" + id +
                ", temname='" + temname + '\'' +
                ", username='" + username + '\'' +
                ", tid=" + tid +
                ", msg='" + msg + '\'' +
                ", checkdate=" + checkdate +
                ", status=" + status +
                '}';
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
